package com.esunrise.shop.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esunrise.shop.common.entity.SysAccess;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysAccessMapper extends BaseMapper<SysAccess> {
    List<SysAccess> findAll();

    SysAccess findById(int id);

    int countByName(String name);

    int insertOld(String name, String url);

    int deleteByIdOld(int id);

    int updateStatus(int status,int id);

    int updateInfo(int id,String name,String url);
}
